home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / porttool.zip / TOUCH.MAN < prev    next >
Text File  |  1992-12-03  |  2KB  |  48 lines

  1.  
  2.    NNAAMMEE
  3.       touch - update the access and modification times of a file
  4.  
  5.    SSYYNNOOPPSSIISS
  6.       ttoouucchh [ _-_a_m_c_h ] [ _m_m_d_d_h_h_m_m[_y_y] ] _f_i_l_e ...
  7.  
  8.    DDEESSCCRRIIPPTTIIOONN
  9.       ttoouucchh sets the access and modification times of each argument to
  10.       the current time.  A file is created if it does not already exist.
  11.  
  12.       ttoouucchh is valuable when used in conjunction with mmaakkee(1), where, for
  13.       instance, you might want to force a module to be rebuilt even
  14.       though it has not changed.  In such a case, you might type:
  15.  
  16.          touch  sumfile.c
  17.          make
  18.  
  19.       mmaakkee(1) would then see that sumfile.c was more recent than the
  20.       corresponding .obj file, and would cause sumfile.c to be compiled.
  21.  
  22.    OOPPTTIIOONNSS
  23.       The date-and-time argument updates the modification time to that
  24.       specified, rather than the current time.  The first _m_m is the
  25.       month, _d_d is the day of the month, _h_h is the hour, and the second
  26.       _m_m is the minute.  If _y_y is specified, it is the last two digits of
  27.       the year.  If omitted, the current year is assumed.  Little error
  28.       checking is performed; you can set very odd dates and times.
  29.  
  30.          --aa Update only the access time.
  31.  
  32.          --cc Do not create _f_i_l_e if it does not exist.
  33.  
  34.          --mm Update only the modification time.
  35.  
  36.          --hh Display a short help message.
  37.  
  38.       Under MS-DOS the access time and modification time are teated as
  39.       the same thing; under OS/2 they are different.
  40.  
  41.    BBUUGGSS
  42.       It is difficult to touch a file whose name consists entirely of
  43.       digits, as ttoouucchh will interpret the first such non-flag argument as
  44.       a time.  You must ensure that there is a character in the name
  45.       which is not a digit, by specifying it as ./_n_a_m_e rather than _n_a_m_e.
  46.  
  47.    CCooppyyrriigghhtt  ((cc))  11999922    FFrraannkk  EE..  WWhhaalleeyy    AAllll  rriigghhttss  rreesseerrvveedd
  48.